<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改出库登记')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncOutPut-edit" th:object="${ncOutPut}">
            <input id="outPutId" name="outPutId" th:field="*{outPutId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">育苗日期：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(planTime, 'yyyy-MM-dd HH:mm:ss')}" name="planTime" data-type="datetime" class="time-input" id="planTime"/>
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-3 control-label">作物名称：</label>
				<div class="col-sm-8">
					<input id="cropNameCn" name="cropNameCn" th:field="*{cropNameCn}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">作物品种：</label>
				<div class="col-sm-8">
					<input id="cropVarietiesCn" name="cropVarietiesCn" th:field="*{cropVarietiesCn}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">育苗数量(株)：</label>
				<div class="col-sm-8">
					<input id="amount" name="amount" th:field="*{amount}" class="form-control" required type="number" onkeyup=" value=value.replace(/^(0+)|[^\d]+/g,'')">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">取苗日期：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(createTime, 'yyyy-MM-dd HH:mm:ss')}" name="createTime" data-type="datetime" class="time-input" id="createTime"/>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">经手人：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">接收人：</label>
				<div class="col-sm-8">
					<input id="receiver" name="receiver" th:field="*{receiver}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" rows="4" name="remark" th:field="*{remark}" class="form-control" type="text"></textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncOutPut";
		$("#form-ncOutPut-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncOutPut-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
